package ee.az.test.serialization;

import java.io.Serializable;

/**
 * @author Artur Zinatullin (artur.zinatullin@gmail.com) 2010
 */
public class Body implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private Part parts[];
	private String comment;
	
	public Body() {
	}
	
	public Body(int length) {
		parts = new Part[length];
	}
	
	public int getLength() {
		return parts.length;
	}
	
	public Part getPart(int index) {
		return parts[index];
	}
	public void setPart(int index, Part part) {
		parts[index] = part;
	}

	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}

	public Part[] getParts() {
		return parts;
	}

	public void setParts(Part[] parts) {
		this.parts = parts;
	}
}
